package com.zfei.gfb.device.permit;

import java.util.Objects;

public class Button {

    private Integer id;
    public String name;
    public String path;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Button button = (Button) o;
        return com.google.common.base.Objects.equal(id, button.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
